package com.guchenbo.example.thread;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * @Author guchenbo
 * @Date 2019/7/3.
 */
public class ThreadUtils {

    //    public static void

    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();

        //        calendar.setTime(new SimpleDateFormat("yyyy-MM-dd").parse("20"));
        calendar.set(Calendar.DATE, -1120);

        System.out.println(new SimpleDateFormat("yyyy-MM-dd").format(calendar.getTime()));

    }
}
